package com.yizhuoyan.his.ao;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
public class DepartmentAo {
    /**
     * 科室编码
     */
    @NotNull(message = "科室编码不能为空")
    @Length(max = 64,message = "科室编码长度不能超过{max}")
    private String code;
    /**
     * 科室名称
     */
    @NotNull(message = "科室名称不能为空")
    @Length(max = 64,message = "科室名称长度不能超过{max}")
    private String name;
    /**
     * 科室分类
     */
    @NotNull(message = "科室分类不能为空")
    @Length(max = 9,message = "科室分类id长度不能超过{max}")
    private long categoryId;
    /**
     * 科室类型
     */
    @Length(max = 1,message = "科室类型id长度不能超过{max}")
    private long typeConstantId;


}
